package project.dao;

import org.apache.ibatis.annotations.Mapper;
import project.model.User;

@Mapper
public interface UserMapper {
    //注册用户
    public int addUser(User user);
    //登录用户
    public User login(String username, String password);
    //修改信息
    public int updateUserPassword(User user);
    public int updateUserPhone(User user);
    //删除用户
    public int deleteUser(int id);
    //查询用户信息
    public User selectById(Integer idInt);
    //查询用户id
    public User selectByName(String username);
}
